<ice:panelGroup xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ice="http://www.icesoft.com/icefaces/component"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                rendered="#{clientController.page == 'repondreQuestionnaire'}" >

    <ice:panelGroup styleClass="titreListeEtat"  rendered="#{clientController.questionnaire == null}">
        <ice:outputText escape="false" value="#{bundle.QuestionnaireVide}"/>
    </ice:panelGroup>
    <ice:panelGroup rendered="#{clientController.questionnaire!=null}" styleClass="titreListeEtat">
        <ice:outputText value="#{clientController.questionnaire.titre}"/>
    </ice:panelGroup>
    <center>
        <ice:panelGrid styleClass="panelSeriesContainer">
            <ice:panelSeries  id="question" value="#{clientController.questionnaire.questionnaireQuestionCollection}" var="qq" styleClass="panelSeriesContainer questionBox">
                <ice:panelCollapsible expanded="true">
                    <f:facet name="header">
                        <ice:panelGroup>
                            <ice:outputText id="linkHeader"
                                            value="#{qq.question.libelle}"/>
                        </ice:panelGroup>
                    </f:facet>
                    <ice:panelGroup style="padding:10px;" rendered="#{qq.question.typeRendu.isRADIO_BUTTON}">
                        <ice:selectOneRadio layout="pageDirection" value="#{qq.reponse}">
                            <f:selectItems value="#{qq.question.reponseItems}"/>
                        </ice:selectOneRadio>
                    </ice:panelGroup>
                    <ice:panelGroup style="padding:10px;" rendered="#{qq.question.typeRendu.isCHECKBOX}">
                        <ice:selectManyCheckbox layout="pageDirection" >
                            <f:selectItems value="#{qq.question.reponseItems}"/>
                        </ice:selectManyCheckbox>
                    </ice:panelGroup>
                    <ice:panelGroup style="padding:10px;" rendered="#{qq.question.typeRendu.isLISTBOX}">
                        <ice:selectOneListbox>
                            <f:selectItems value="#{qq.question.reponseItems}"/>
                        </ice:selectOneListbox>
                    </ice:panelGroup>
                    <ice:panelGroup style="padding:10px;" rendered="#{qq.question.typeRendu.isTEXTAREA}">
                        <ice:inputTextarea />
                    </ice:panelGroup>
                </ice:panelCollapsible>
            </ice:panelSeries>
            <ice:commandButton action="#{clientController.enregistrerReponses}" value="#{bundle.QuestionnaireEnregistrer}"/>
        </ice:panelGrid>
    </center>
</ice:panelGroup>